package com.crm.controller.kk;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crm.pojo.CrmAnnouncement;
import com.crm.utils.R;
import com.crm.vo.PageVo;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "内部公告",value = "内部公告")
@RequestMapping("/announcement")
public class Announcement {

    @RequestMapping(value ="/selectAllannouncement",method = RequestMethod.POST)
    @ApiOperation(value = "显示所有公告列表",notes = "显示所有公告列表",httpMethod = "POST",response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=401,message ="用户未授权"),
            @ApiResponse(code=403,message="认证失败"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ApiImplicitParam(name = "显示所有公告列表",value = "无参",paramType = "select")
    public R selectAllannouncement(PageVo pageVo){
        return null;
    }


    @RequestMapping(value ="/addannouncement",method = RequestMethod.POST)
    @ApiOperation(value = "添加公告",notes = "添加公告",httpMethod = "POST",response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=401,message ="用户未授权"),
            @ApiResponse(code=403,message="认证失败"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ApiImplicitParam(name = "添加公告",value = "CrmAnnouncement",paramType = "add")
    public R addannouncement(PageVo pageVo){
        return null;
    }


    @RequestMapping(value ="/updateannouncement",method = RequestMethod.POST)
    @ApiOperation(value = "修改公告",notes = "修改公告",httpMethod = "POST",response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=401,message ="用户未授权"),
            @ApiResponse(code=403,message="认证失败"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ApiImplicitParam(name = "修改公告",value = "CrmAnnouncement",paramType = "update")
    public R updateannouncement(CrmAnnouncement crmAnnouncement){
        return null;
    }




    @RequestMapping(value ="/deleteannouncement",method = RequestMethod.POST)
    @ApiOperation(value = "删除公告",notes = "删除公告",httpMethod = "POST",response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=401,message ="用户未授权"),
            @ApiResponse(code=403,message="认证失败"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ApiImplicitParam(name = "删除公告",value = "CrmAnnouncement",paramType = "delete")
    public R deleteannouncement(Integer id){
        return null;
    }


    @RequestMapping(value ="/upload",method = RequestMethod.POST)
    @ApiOperation(value = "文件上传",notes = "文件上传",httpMethod = "POST",response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=401,message ="用户未授权"),
            @ApiResponse(code=403,message="认证失败"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ApiImplicitParam(name = "文件上传")
    public R upload(){
        return null;
    }


}
